package org.example.travel_web.service;

import org.example.travel_web.dto.PageResult;
import org.example.travel_web.dto.news.*;
import org.example.travel_web.entity.NewsET;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 23591
* @description 针对表【travel_news(用于存储旅游资讯文章的信息)】的数据库操作Service
* @createDate 2025-01-21 15:57:56
*/
public interface NewsService extends IService<NewsET> {

    PageResult<PageResp> pageResult(PageReq req);

    void deleteNews(Integer[] ids);

    void addNews(NewsReq req);

    void updateNews(NewsReq req);

    NewsDetail getNewsDetail(Integer id);

    PageResult<UserNewsPageResp> userPageResult(UserNewsPageReq req);
}
